﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevComponents.DotNetBar;

namespace LL.DevComponents
{
    public static class SideBarExtensions
    {
        public static bool ContainsPanel(this SideBar control, string name)
        {
            for (int i = 0; i < control.Panels.Count; i++)
            {
                var panel = control.Panels[i];
                if (panel.Name.Equals(name))
                    return true;
            }
            return false;
        }
    }
}
